3.187 \(\int \frac{c+d x+e x^2+f x^3+g x^4+h x^5+i x^6}{a-b x^4} \, dx\)

Optimal. Leaf size=188 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{(a h+b d) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{f \log \left (a-b x^4\right )}{4 b}-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{i x^3}{3 b} \]

[Out]

-((g*x)/b) - (h*x^2)/(2*b) - (i*x^3)/(3*b) - ((b*e - (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcTan[(b^(1/4)*x)/a
^(1/4)])/(2*a^(1/4)*b^(7/4)) + ((b*e + (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcTanh[(b^(1/4)*x)/a^(1/4)])/(2*a
^(1/4)*b^(7/4)) + ((b*d + a*h)*ArcTanh[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]*b^(3/2)) - (f*Log[a - b*x^4])/(4*b)

________________________________________________________________________________________

Rubi [A]  time = 0.326583, antiderivative size = 188, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 9, integrand size = 41, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.22, Rules used = {1885, 1819, 1810, 635, 208, 260, 1887, 1167, 205} \[ -\frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\frac{\sqrt{b} (a g+b c)}{\sqrt{a}}+a i+b e\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{(a h+b d) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{f \log \left (a-b x^4\right )}{4 b}-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{i x^3}{3 b} \]

Antiderivative was successfully verified.

[In]

Int[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5 + i*x^6)/(a - b*x^4),x]

[Out]

-((g*x)/b) - (h*x^2)/(2*b) - (i*x^3)/(3*b) - ((b*e - (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcTan[(b^(1/4)*x)/a
^(1/4)])/(2*a^(1/4)*b^(7/4)) + ((b*e + (Sqrt[b]*(b*c + a*g))/Sqrt[a] + a*i)*ArcTanh[(b^(1/4)*x)/a^(1/4)])/(2*a
^(1/4)*b^(7/4)) + ((b*d + a*h)*ArcTanh[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]*b^(3/2)) - (f*Log[a - b*x^4])/(4*b)

Rule 1885

Int[(Pq_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Module[{q = Expon[Pq, x], j, k}, Int[Sum[x^j*Sum[Coeff[P
q, x, j + (k*n)/2]*x^((k*n)/2), {k, 0, (2*(q - j))/n + 1}]*(a + b*x^n)^p, {j, 0, n/2 - 1}], x]] /; FreeQ[{a, b
, p}, x] && PolyQ[Pq, x] && IGtQ[n/2, 0] &&  !PolyQ[Pq, x^(n/2)]

Rule 1819

Int[(Pq_)*(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Dist[1/(m + 1), Subst[Int[SubstFor[x^(m + 1)
, Pq, x]*(a + b*x^Simplify[n/(m + 1)])^p, x], x, x^(m + 1)], x] /; FreeQ[{a, b, m, n, p}, x] && NeQ[m, -1] &&
IGtQ[Simplify[n/(m + 1)], 0] && PolyQ[Pq, x^(m + 1)]

Rule 1810

Int[(Pq_)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x^2)^p, x], x] /; FreeQ[{a,
b}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rule 635

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Dist[d, Int[1/(a + c*x^2), x], x] + Dist[e, Int[x/
(a + c*x^2), x], x] /; FreeQ[{a, c, d, e}, x] &&  !NiceSqrtQ[-(a*c)]

Rule 208

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-(a/b), 2]*ArcTanh[x/Rt[-(a/b), 2]])/a, x] /; FreeQ[{a,
b}, x] && NegQ[a/b]

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 1887

Int[(Pq_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Int[ExpandIntegrand[Pq/(a + b*x^n), x], x] /; FreeQ[{a, b}, x
] && PolyQ[Pq, x] && IntegerQ[n]

Rule 1167

Int[((d_) + (e_.)*(x_)^2)/((a_) + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[-(a*c), 2]}, Dist[e/2 + (c*d)/(2*q)
, Int[1/(-q + c*x^2), x], x] + Dist[e/2 - (c*d)/(2*q), Int[1/(q + c*x^2), x], x]] /; FreeQ[{a, c, d, e}, x] &&
 NeQ[c*d^2 - a*e^2, 0] && PosQ[-(a*c)]

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin{align*} \int \frac{c+d x+e x^2+f x^3+g x^4+h x^5+187 x^6}{a-b x^4} \, dx &=\int \left (\frac{x \left (d+f x^2+h x^4\right )}{a-b x^4}+\frac{c+e x^2+g x^4+187 x^6}{a-b x^4}\right ) \, dx\\ &=\int \frac{x \left (d+f x^2+h x^4\right )}{a-b x^4} \, dx+\int \frac{c+e x^2+g x^4+187 x^6}{a-b x^4} \, dx\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{d+f x+h x^2}{a-b x^2} \, dx,x,x^2\right )+\int \left (-\frac{g}{b}-\frac{187 x^2}{b}+\frac{b c+a g+(187 a+b e) x^2}{b \left (a-b x^4\right )}\right ) \, dx\\ &=-\frac{g x}{b}-\frac{187 x^3}{3 b}+\frac{1}{2} \operatorname{Subst}\left (\int \left (-\frac{h}{b}+\frac{b d+a h+b f x}{b \left (a-b x^2\right )}\right ) \, dx,x,x^2\right )+\frac{\int \frac{b c+a g+(187 a+b e) x^2}{a-b x^4} \, dx}{b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{187 x^3}{3 b}+\frac{\operatorname{Subst}\left (\int \frac{b d+a h+b f x}{a-b x^2} \, dx,x,x^2\right )}{2 b}+\frac{\left (187 a+b e-\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \int \frac{1}{-\sqrt{a} \sqrt{b}-b x^2} \, dx}{2 b}+\frac{\left (187 a+b e+\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \int \frac{1}{\sqrt{a} \sqrt{b}-b x^2} \, dx}{2 b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{187 x^3}{3 b}-\frac{\left (187 a+b e-\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\left (187 a+b e+\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{1}{2} f \operatorname{Subst}\left (\int \frac{x}{a-b x^2} \, dx,x,x^2\right )+\frac{(b d+a h) \operatorname{Subst}\left (\int \frac{1}{a-b x^2} \, dx,x,x^2\right )}{2 b}\\ &=-\frac{g x}{b}-\frac{h x^2}{2 b}-\frac{187 x^3}{3 b}-\frac{\left (187 a+b e-\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{\left (187 a+b e+\frac{\sqrt{b} (b c+a g)}{\sqrt{a}}\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt [4]{a} b^{7/4}}+\frac{(b d+a h) \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}-\frac{f \log \left (a-b x^4\right )}{4 b}\\ \end{align*}

Mathematica [A]  time = 0.375655, size = 301, normalized size = 1.6 \[ \frac{-\frac{3 \log \left (\sqrt [4]{a}-\sqrt [4]{b} x\right ) \left (a^{5/4} \sqrt [4]{b} h+a^{3/2} i+\sqrt [4]{a} b^{5/4} d+\sqrt{a} b e+a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}+\frac{3 \log \left (\sqrt [4]{a}+\sqrt [4]{b} x\right ) \left (-a^{5/4} \sqrt [4]{b} h+a^{3/2} i-\sqrt [4]{a} b^{5/4} d+\sqrt{a} b e+a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}+\frac{6 \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (a^{3/2} (-i)-\sqrt{a} b e+a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}-3 b^{3/4} f \log \left (a-b x^4\right )+\frac{3 \sqrt [4]{b} (a h+b d) \log \left (\sqrt{a}+\sqrt{b} x^2\right )}{\sqrt{a}}-12 b^{3/4} g x-6 b^{3/4} h x^2-4 b^{3/4} i x^3}{12 b^{7/4}} \]

Antiderivative was successfully verified.

[In]

Integrate[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5 + i*x^6)/(a - b*x^4),x]

[Out]

(-12*b^(3/4)*g*x - 6*b^(3/4)*h*x^2 - 4*b^(3/4)*i*x^3 + (6*(b^(3/2)*c - Sqrt[a]*b*e + a*Sqrt[b]*g - a^(3/2)*i)*
ArcTan[(b^(1/4)*x)/a^(1/4)])/a^(3/4) - (3*(b^(3/2)*c + a^(1/4)*b^(5/4)*d + Sqrt[a]*b*e + a*Sqrt[b]*g + a^(5/4)
*b^(1/4)*h + a^(3/2)*i)*Log[a^(1/4) - b^(1/4)*x])/a^(3/4) + (3*(b^(3/2)*c - a^(1/4)*b^(5/4)*d + Sqrt[a]*b*e +
a*Sqrt[b]*g - a^(5/4)*b^(1/4)*h + a^(3/2)*i)*Log[a^(1/4) + b^(1/4)*x])/a^(3/4) + (3*b^(1/4)*(b*d + a*h)*Log[Sq
rt[a] + Sqrt[b]*x^2])/Sqrt[a] - 3*b^(3/4)*f*Log[a - b*x^4])/(12*b^(7/4))

________________________________________________________________________________________

Maple [B]  time = 0.045, size = 367, normalized size = 2. \begin{align*} -{\frac{i{x}^{3}}{3\,b}}-{\frac{h{x}^{2}}{2\,b}}-{\frac{gx}{b}}+{\frac{g}{2\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{c}{2\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{g}{4\,b}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c}{4\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{ah}{4\,b}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{d}{4}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{ai}{2\,{b}^{2}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{e}{2\,b}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{ai}{4\,{b}^{2}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e}{4\,b}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{f\ln \left ( b{x}^{4}-a \right ) }{4\,b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x)

[Out]

-1/3*i*x^3/b-1/2*h*x^2/b-g*x/b+1/2/b*(1/b*a)^(1/4)*arctan(x/(1/b*a)^(1/4))*g+1/2*c*(1/b*a)^(1/4)/a*arctan(x/(1
/b*a)^(1/4))+1/4/b*(1/b*a)^(1/4)*ln((x+(1/b*a)^(1/4))/(x-(1/b*a)^(1/4)))*g+1/4*c*(1/b*a)^(1/4)/a*ln((x+(1/b*a)
^(1/4))/(x-(1/b*a)^(1/4)))-1/4/b/(a*b)^(1/2)*ln((-a+x^2*(a*b)^(1/2))/(-a-x^2*(a*b)^(1/2)))*a*h-1/4*d/(a*b)^(1/
2)*ln((-a+x^2*(a*b)^(1/2))/(-a-x^2*(a*b)^(1/2)))-1/2/b^2/(1/b*a)^(1/4)*arctan(x/(1/b*a)^(1/4))*a*i-1/2*e/b/(1/
b*a)^(1/4)*arctan(x/(1/b*a)^(1/4))+1/4/b^2/(1/b*a)^(1/4)*ln((x+(1/b*a)^(1/4))/(x-(1/b*a)^(1/4)))*a*i+1/4*e/b/(
1/b*a)^(1/4)*ln((x+(1/b*a)^(1/4))/(x-(1/b*a)^(1/4)))-1/4/b*f*ln(b*x^4-a)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((i*x**6+h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(-b*x**4+a),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 1.08977, size = 807, normalized size = 4.29 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(-b*x^4+a),x, algorithm="giac")

[Out]

1/8*i*(2*sqrt(2)*(-a*b^3)^(3/4)*arctan(1/2*sqrt(2)*(2*x + sqrt(2)*(-a/b)^(1/4))/(-a/b)^(1/4))/b^4 - sqrt(2)*(-
a*b^3)^(3/4)*log(x^2 + sqrt(2)*x*(-a/b)^(1/4) + sqrt(-a/b))/b^4) + 1/8*i*(2*sqrt(2)*(-a*b^3)^(3/4)*arctan(1/2*
sqrt(2)*(2*x - sqrt(2)*(-a/b)^(1/4))/(-a/b)^(1/4))/b^4 + sqrt(2)*(-a*b^3)^(3/4)*log(x^2 - sqrt(2)*x*(-a/b)^(1/
4) + sqrt(-a/b))/b^4) - 1/4*f*log(abs(b*x^4 - a))/b + 1/4*sqrt(2)*(sqrt(2)*sqrt(-a*b)*b^2*d - sqrt(2)*sqrt(-a*
b)*a*b*h + (-a*b^3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b*g + (-a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x + sqrt(2)*(
-a/b)^(1/4))/(-a/b)^(1/4))/(a*b^3) + 1/4*sqrt(2)*(sqrt(2)*sqrt(-a*b)*b^2*d - sqrt(2)*sqrt(-a*b)*a*b*h + (-a*b^
3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b*g + (-a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x - sqrt(2)*(-a/b)^(1/4))/(-a/
b)^(1/4))/(a*b^3) + 1/8*sqrt(2)*((-a*b^3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b*g - (-a*b^3)^(3/4)*e)*log(x^2 + sqr
t(2)*x*(-a/b)^(1/4) + sqrt(-a/b))/(a*b^3) - 1/8*sqrt(2)*((-a*b^3)^(1/4)*b^2*c + (-a*b^3)^(1/4)*a*b*g - (-a*b^3
)^(3/4)*e)*log(x^2 - sqrt(2)*x*(-a/b)^(1/4) + sqrt(-a/b))/(a*b^3) - 1/6*(2*b^2*i*x^3 + 3*b^2*h*x^2 + 6*b^2*g*x
)/b^3